using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using Common.Utilities.Dispatcher;

namespace Workflows.Components.TextMining.FullTextSearch
{
    [Serializable]
    public class NearestNeighborSearchInstruction:InstructionBase
    {
        private FullTextProvider _TextProvider;

        public FullTextProvider Subject
        {
            get { return _TextProvider; }
            set { _TextProvider = value; }
        }

        private CorpusProvider _Corpus;

        public CorpusProvider Corpus
        {
            get { return _Corpus; }
            set { _Corpus = value; }
        }
	

        public NearestNeighborSearchInstruction() : base(Guid.Empty, Guid.Empty)
        {
            this._TextProvider=new FullTextProvider();
            this._Corpus=new CorpusProvider();
        }

        public NearestNeighborSearchInstruction(Guid componentID, Guid jobTicketID,
            FullTextProvider txtProvider,
            CorpusProvider corpus)
            :base(componentID,jobTicketID)
        {
            this._TextProvider = txtProvider;
            this._Corpus = corpus;
        }

        public override XmlNode Serialize(ref XmlDocument xDoc, ref XmlNode parentNode)
        {
            throw new NotImplementedException();
        }

        public override InstructionBase Instantiate(XmlNode xNode)
        {
            throw new NotImplementedException();
        }
    }
}
